package org.example.inventory.entity;

import java.math.BigDecimal;
import java.time.LocalDate;

//采购
public class Purchase extends BaseEntity {
    private Integer productId;
    private Integer quantity;
    private BigDecimal purchasePrice;
    private Integer operatorID;
    private LocalDate purchaseDate;

    @Override
    public String toString() {
        return "Purchase{" +
                "id=" + id +
                ", productId=" + productId +
                ", quantity=" + quantity +
                ", purchasePrice=" + purchasePrice +
                ", operatorID=" + operatorID +
                ", purchaseDate=" + purchaseDate +
                '}';
    }

    public Purchase(Integer id, Integer productId, Integer quantity, BigDecimal purchasePrice, Integer operatorID, LocalDate purchaseDate) {
        this.id = id;
        this.productId = productId;
        this.quantity = quantity;
        this.purchasePrice = purchasePrice;
        this.operatorID = operatorID;
        this.purchaseDate = purchaseDate;
    }

    public Purchase(Integer productId, Integer quantity, BigDecimal purchasePrice, Integer operatorID) {
        this.productId = productId;
        this.quantity = quantity;
        this.purchasePrice = purchasePrice;
        this.operatorID = operatorID;
    }

    public Purchase() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public Integer getOperatorID() {
        return operatorID;
    }

    public void setOperatorID(Integer operatorID) {
        this.operatorID = operatorID;
    }

    public LocalDate getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(LocalDate purchaseDate) {
        this.purchaseDate = purchaseDate;
    }
}
